onPrepared

open fun onPrepared(mp: MediaPlayer)

Called when the media source is ready for playback. This method attempts to start playback using start. Errors during this start attempt are caught and logged.

Parameters

mp

The MediaPlayer that is prepared.